package com.baozun.houji.order.model.bean

import com.baozhun.mall.common.model.enums.RefundStatus

/**
 * @Title：退货详情业务bean
 * @Description：
 * @Author：xuefeng.zhu
 * @Since：2022/12/3
 * @Version：1.0.0
 */
data class RefundDetailBean(
    var after_sale: AfterSaleInfoBean,
    var order: OrderGodsInfoBean,
) : RefundInfoBean() {

    /**
     * 获取倒计时时间
     */
    fun getCountDownSuffix(): String {
        return when (after_sale.after_sale_status) {
            RefundStatus.WAIT_AUDIT.status -> "后自动审核通过"
            RefundStatus.WAIT_RETURN_GOODS.status -> "后自动关闭退款申请"
            RefundStatus.WAIT_RECEIVE.status -> "后自自动确认收货"
            else -> {
                ""
            }
        }

    }
}
